﻿<UserControl x:Class="LeoK.Common.DataSpanSelector"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             FontFamily="SimSun"
             FontSize="14"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d" 
             >
    <Grid Height="30" >
        <StackPanel Orientation="Horizontal">
            <Image Height="24" Width="24" Source="/LeoK;component/Resources/btnPrev.png" MouseLeftButtonDown="btnPrev_OnClick" Cursor="Hand" />
            <TextBlock Text="最近3个月：2015/05/01-2015/05/31"  VerticalAlignment="Center" Margin="5" FontSize="16" 
                       x:Name="tbDateSpan" ContextMenu="{x:Null}" >
            
                <telerik:RadContextMenu.ContextMenu >
                    <telerik:RadContextMenu IconColumnWidth="0" Width="200"  ClickToOpen="True" Placement="Bottom" ItemClick="MenuBase_OnItemClick" > 
                        <telerik:RadMenuItem Header="所有" Tag="All"  />
                        <telerik:RadMenuSeparatorItem />
                        <telerik:RadMenuItem Header="周" Tag="Week" />
                        <telerik:RadMenuItem Header="月" Tag="Month" />
                        <telerik:RadMenuItem Header="季" Tag="Season" />
                        <telerik:RadMenuItem Header="年" Tag="Year" />
                        <telerik:RadMenuSeparatorItem />
                        <telerik:RadMenuItem Header="最近1周" Tag="LastWeek" />
                        <telerik:RadMenuItem Header="最近1个月" Tag="LastMonth" />
                        <telerik:RadMenuItem Header="最近3个月" Tag="LastSeason" />
                        <telerik:RadMenuItem Header="最近1年" Tag="LastYear" />
                    </telerik:RadContextMenu>
                </telerik:RadContextMenu.ContextMenu>
            </TextBlock>
            <Image Height="24" Width="24" Source="/LeoK;component/Resources/btnNext.png" MouseLeftButtonDown="btnNext_OnClick" Cursor="Hand" />
        </StackPanel>
    </Grid>
</UserControl>
